<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html; charset=utf-8"%>
<%@page isELIgnored="false" %>
<!DOCTYPE html>
<html lang="en">  
<head>  
    <meta charset="UTF-8">  
    <title>Login</title>
    <c:set value="${pageContext.request.contextPath}" var="path" scope="page"/>
    <link type="text/css" href="${path}/css/login.css" rel="stylesheet">
<%--    <link rel="stylesheet" type="text/css" href="../../css/login.css"/>--%>
    <script src="https://cdn.bootcdn.net/ajax/libs/vue/3.0.7/vue.cjs.min.js"></script>
</head>  
<body>  
    <div id="login">  
        <h1>Login</h1>
        <form method="post" action="${pageContext.request.contextPath}/user/loginVerift">
            <input type="text" required="required" placeholder="用户名" name="username"></input>
            <input type="password" required="required" placeholder="密码" name="userpassword"></input>
            <c:choose>
            <c:when test="${error==null}">
            <span></span>
            </c:when>
                <c:otherwise>
                    <span>用户名或密码错误</span>
                </c:otherwise>
            </c:choose>
            <button class="but" type="submit">登录</button>
        </form>
        <div>没有账号？<a href="${pageContext.request.contextPath}/user/register">点击注册</a></div>
    </div>  
</body>  
</html>